home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / utsname.h < prev    next >
Text File  |  1995-12-29  |  861b  |  50 lines

  1. /*
  2.  *    File:        utsname.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file to standard UNIX-style entry points ...
  7.  *
  8.  *    NB:            This file implements some UNIX low level support.  These functions
  9.  *                are not guaranteed to be 100% conformant.
  10.  */
  11.  
  12. #ifndef    _UTSNAME
  13. #define    _UTSNAME
  14.  
  15. #pragma options align=mac68k
  16.  
  17. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  18. #pragma import on
  19. #endif
  20.  
  21. /* struct for uname */
  22. struct utsname {
  23.     char    sysname[32];
  24.     char    nodename[32];
  25.     char    release[32];
  26.     char    version[32];
  27.     char    machine[32];
  28. };
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. /*
  35.  *    Get information about the current system.
  36.  */
  37. int uname(struct utsname *name);
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #if __CFM68K__ && __USING_IMPORTED_ANSI__
  44. #pragma import reset
  45. #endif
  46.  
  47. #pragma options align=reset
  48.  
  49. #endif
  50.